using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class QueryParameterType
    {

        private string _Value;
        private string nameField;

        public string Name
        {
            get
            {
                return nameField;
            }
            set
            {
                nameField = value;
            }
        }

        public string Value
        {
            get
            {
                return _Value;
            }
            set
            {
                _Value = value;
            }
        }

        public QueryParameterType()
        {
        }

        public Rdl.QueryParameterType Write()
        {
            Rdl.QueryParameterType queryParameterType = new Rdl.QueryParameterType();
            System.Collections.ArrayList arrayList = new System.Collections.ArrayList();
            queryParameterType.Name = nameField;
            if (_Value != null)
                arrayList.Add(_Value);
            queryParameterType.Items = arrayList.ToArray();
            arrayList = null;
            return queryParameterType;
        }

    } // class QueryParameterType

}

